package com.an;

public class Interface_1 {
    public static void main(String[] args) {
        B b = new B();
        b.eat();
        b.sleep();

    }
}

class B implements A{

    @Override
    public void eat() {
        System.out.println("吃饭....");
    }

    @Override
    public void sleep() {
        System.out.println("睡觉...");
    }
}
